一、invoke
Method.invoke
1 | Method method = Threedr3am.class.getMethod("a"); |
MethodAccessor.invoke
1 | Method method = Threedr3am.class.getMethod("a"); |
JSClassLoader.invoke
1 | Method method = Main.class.getDeclaredMethod("a"); |
二、newInstance
JSClassLoader.newInstance
1 | Constructor constructor = Main.class.getConstructor(); |